package com.dean.practice.producer.ctrl;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author Dean
 * @date 2020-11-27
 */
@RestController
@RequestMapping("/sample")
public class SampleCtrl {

    @Value("${spring.application.name}")
    private String serverName;

    @GetMapping("/hello")
    public String hello() {
        return "Hello : " + serverName;
    }

}